package cn.hlife.com.hlfhaemocyte.bluetooth;

import android.util.Log;

import com.inuker.bluetooth.library.connect.response.BleConnectResponse;
import com.inuker.bluetooth.library.model.BleGattProfile;

import cn.hlife.com.hlfhaemocyte.utils.LogUtils;

import static com.inuker.bluetooth.library.Constants.REQUEST_SUCCESS;

/**
 * Created by Administrator on 2017/7/7.
 */

public class BluetoothKitPercentor {

    private  BluetoothKitPercentor(){

    }
    public  static BluetoothKitPercentor  getInstance(){
       return BluetoothKitPercentorHelp.bluetoothKitPercentor;
    };
   static class  BluetoothKitPercentorHelp{
       static   BluetoothKitPercentor   bluetoothKitPercentor=new BluetoothKitPercentor();
    }


    static String TAG = BluetoothKitPercentor.class.getSimpleName();
    private static final String MAC = "00:15:83:00:92:5C";



    public void judgeBluetoothState() {
        if (ClientManager.getClient().isBluetoothOpened()) {
            LogUtils.e(TAG + "蓝牙已打开，开始进行连接");
//            BleConnectOptions options = new BleConnectOptions.Builder()
//                    .setConnectRetry(3)   // 连接如果失败重试3次
//                    .setConnectTimeout(30000)   // 连接超时30s
//                    .setServiceDiscoverRetry(3)  // 发现服务如果失败重试3次
//                    .setServiceDiscoverTimeout(20000)  // 发现服务超时20s
//                    .build();

        } else {
            ClientManager.getClient().openBluetooth();
        }
    }



}
